<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="page" value="#{saleLoanContractDiscretionBean.page}"/>
		<f:event type="preRenderView" listener="#{saleLoanContractDiscretionBean.paginate}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Search Sale Loan Contract Discretion entities"/>

	<ui:define name="header">
		Sale Loan Contract Discretion
	</ui:define>

	<ui:define name="subheader">
		Search Sale Loan Contract Discretion entities
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="search">
			<f:validateBean disabled="true">
				<h:panelGroup styleClass="search">

					<h:panelGrid columnClasses="label,component,required" columns="3">
						<h:outputLabel for="saleLoanContractDiscretionBeanExampleSaleLoanContract" value="Sale Loan Contract:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{saleLoanContractBean.converter}" id="saleLoanContractDiscretionBeanExampleSaleLoanContract" value="#{saleLoanContractDiscretionBean.example.saleLoanContract}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{saleLoanContractBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="saleLoanContractDiscretionBeanExampleSaleLoanContract" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="saleLoanContractDiscretionBeanExampleDc01IsUsed" value="Dc 01Is Used:"/>
						<h:panelGroup>
							<h:inputText id="saleLoanContractDiscretionBeanExampleDc01IsUsed" maxLength="1" value="#{saleLoanContractDiscretionBean.example.dc01IsUsed}"/>
							<h:message for="saleLoanContractDiscretionBeanExampleDc01IsUsed" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="saleLoanContractDiscretionBeanExampleDc01Val" value="Dc 01Val:"/>
						<h:panelGroup>
							<h:inputText id="saleLoanContractDiscretionBeanExampleDc01Val" value="#{saleLoanContractDiscretionBean.example.dc01Val}"/>
							<h:message for="saleLoanContractDiscretionBeanExampleDc01Val" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="saleLoanContractDiscretionBeanExampleDc02IsUsed" value="Dc 02Is Used:"/>
						<h:panelGroup>
							<h:inputText id="saleLoanContractDiscretionBeanExampleDc02IsUsed" maxLength="1" value="#{saleLoanContractDiscretionBean.example.dc02IsUsed}"/>
							<h:message for="saleLoanContractDiscretionBeanExampleDc02IsUsed" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="saleLoanContractDiscretionBeanExampleDc02Val" value="Dc 02Val:"/>
						<h:panelGroup>
							<h:inputText id="saleLoanContractDiscretionBeanExampleDc02Val" maxLength="300" value="#{saleLoanContractDiscretionBean.example.dc02Val}"/>
							<h:message for="saleLoanContractDiscretionBeanExampleDc02Val" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
					</h:panelGrid>
					<h:panelGroup styleClass="buttons">
						<h:commandLink value="Search" action="#{saleLoanContractDiscretionBean.search}" styleClass="btn btn-primary"/>
						<h:commandLink value="Create New" action="#{saleLoanContractDiscretionBean.create}" styleClass="btn btn-primary"/>
					</h:panelGroup>
				</h:panelGroup>
			</f:validateBean>
			
			<h:dataTable id="saleLoanContractDiscretionBeanPageItems" styleClass="data-table" value="#{saleLoanContractDiscretionBean.pageItems}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sale Loan Contract"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContractDiscretion/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSaleLoanContract" value="#{forgeview:display(_item.saleLoanContract)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Discretion Date"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContractDiscretion/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemDiscretionDate" value="#{_item.discretionDate}">
							<f:convertDateTime type="both"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Limit Rate Val"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContractDiscretion/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemLimitRateVal" value="#{_item.limitRateVal}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Exceed Rate Val"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContractDiscretion/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemExceedRateVal" value="#{_item.exceedRateVal}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Dc 01Is Used"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContractDiscretion/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemDc01IsUsed" value="#{_item.dc01IsUsed}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<ui:include src="/resources/scaffold/paginator.xhtml">
				<ui:param name="paginatorBean" value="#{saleLoanContractDiscretionBean}"/>
			</ui:include>
		</h:form>
			
	</ui:define>

</ui:composition>
